#include <stdio.h>
 
int main()
{
	int i = 0;
	int a = 0;
	int b = 0;
	int c = 0;
	scanf_s("%d %d %d",&a,&b,&c);
	if (a < b)
	{
		i = a;
		a = b;
		b = i;
	}
	if (b < c)
	{
		i = b;
		b = c;
		c = i;
	}
	if (a < c)
	{
		i = a;
		a = c;
		c = i;
	}
	printf("%d %d %d\n",a,b,c);

	return 0;
}